﻿namespace Common.Core.Config
{
    /// <summary>
    /// 华为云短信 
    /// </summary>
    public class HuaWeiyunSmsConfig
    {
        /// <summary>
        /// 是否是调试
        /// </summary>
        public bool IsDebug { get; set; }

        /// <summary>
        /// 是否开启短信服务
        /// </summary>
        public bool UseSms { get; set; }

        /// <summary>
        /// 服务地址
        /// </summary>
        public string APIAddress { get; set; }

        /// <summary>
        /// 短信签名
        /// </summary>
        public string Signature { get; set; }
        /// <summary>
        /// 通道
        /// </summary>
        public string Sender { get; set; }

        public string AccessKeyId { get; set; }

        public string AccessKeySecret { get; set; }

        /// <summary>
        /// 黑名单列表，多个逗号分开
        /// </summary>
        public string BlackList { get; set; }

        /// <summary>
        /// 同一手机号并且同一内容短几秒内只能发一次，默认300秒，即5分钟
        /// </summary>
        public int LimitRepeatTextForPhone { get; set; }

        /// <summary>
        /// 同一手机号每天限制发送条数，默认10条
        /// </summary>
        public int LimitPhoneSend { get; set; }

    }
}
